package br.mikhas.db.model.factory;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Mark the field as it belongs to the index
 * 
 * @author Mikhail Domanoski
 * 
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Index {
	/**
	 * Marks this field as an auto-numbered sequence
	 * 
	 * @return Index fields are not sequential by default
	 */
	boolean sequential() default false;
}
